package com.module.ble.ui.bindCompleted

import android.view.View
import com.alibaba.android.arouter.facade.annotation.Route
import com.common.app.core.RouterHub
import com.common.base.app.activity.BaseNavActivity
import com.common.base.app.extras.setOnClickListener
import com.common.base.utils.StatusBarUtils
import com.module.ble.databinding.BleActivityRingBindCompletedBinding

/**
 * 作者：sosou
 * <p>
 * 版本：1.0
 * <p>
 * 创建日期：2025/07/02
 * <p>
 * 描述：绑定完成页面
 * <p>
 * 修订历史：
 */
@Route(path = RouterHub.ROUTER_BIND_COMPLETED)
class BindCompletedActivity : BaseNavActivity<BleActivityRingBindCompletedBinding>(),
    View.OnClickListener {

    override fun getViewContentBinding() = BleActivityRingBindCompletedBinding.inflate(layoutInflater)

    override fun getPlaceholderView() = mViewBinding.mPlaceholderView

    override fun isShowToolBar(): Boolean = false
    override fun isStatusBarTranslate(): Boolean = true

    override fun initViews() {
        super.initViews()
        StatusBarUtils.setStatusBarHeight(mViewContentBinding.statusView)
        StatusBarUtils.setStatusBarForegroundColor(this, true)
    }

    override fun initEvents() {
        super.initEvents()
        mViewContentBinding.tvBing.setOnClickListener(onClick = this)
    }

    override fun lazyInitData() {
        super.lazyInitData()
    }

    override fun onClick(v: View?) {
        finish()
    }
}